<template>
	<u-navbar :fixed="true" :placeholder="true" leftIcon="home" :is-back="true" :border-bottom="false">
		<template #left>
			<view
				class="u-nav-slot"
			>
				<view>
					<u-icon size="20" name="man-add" @click="jumpTo('/views/message-page/AddPost')"></u-icon>
				</view>
			</view>
		</template>
	</u-navbar>
	<view>
		<!--帖子列表-->
		<view class="post_list_content">
			<scroll-view :scroll-y="true" :enable-flex="true" lower-threshold="50px" class="scrollView" @scrolltolower="bottomOut() ">
				<post-item v-for="(item, index) in postList" :key="index" :post="item" @do-sth="getPostListNew" ></post-item>
			</scroll-view>
			<u-loadmore :status="status" />
		</view>
	</view>
	<tabbar></tabbar>
</template>
<script setup>

/**
 * @description 页面跳转
 */
const jumpTo = (path) => {
  uni.navigateTo({
    url: path
  });
};
</script>
<style lang="scss" scoped>

</style>

